import VueRouter from 'vue-router'
import HomeContainer from './component/tabbar/HomeContainer.vue'
import MemberContainer from './component/tabbar/MemberContainer.vue'
import ShopcarContainer from './component/tabbar/ShopcarContainer.vue'
import SearchContainer from './component/tabbar/SearchContainer.vue'
import NewsList from './component/news/NewsList.vue' 
import NewsInfo from "./component/news/Newsinfo.vue"
import photolist from "./component/photo/photolist.vue"
import pnotoinfo from './component/photo/photoinfo.vue'
import GoodsList from './component/goods/GoodsList.vue'
import GoodsInfo from './component/goods/GoodsInfo.vue'

var router =new VueRouter({
    routes:[
        {path:"/",redirect:"/home"},
        {path:'/home',component:HomeContainer},
        {path:'/member',component:MemberContainer},
        {path:'/shopcar',component:ShopcarContainer},
        {path:'/search',component:SearchContainer},
        {path:'/home/newslist',component:NewsList},
        {path:'/home/newsinfo/:id',component:NewsInfo},
        {path:'/home/photolist',component:photolist},
        {path:'/home/photoinfo',component:pnotoinfo},
        {path:'/home/goodslist',component:GoodsList},
        {path:'/home/goodsinfo',component:GoodsInfo}
    ],
    linkActiveClass:'mui-active'
})  
export default router